package net.melon.article.pojo;

import java.util.Date;

import net.esj.basic.pojo.AbstractPojo;
import net.esj.basic.pojo.MReality;

public class Article extends AbstractPojo<Integer> implements MReality {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -765002729712402293L;

	public static final String MOBJECT_TYPE = "ARTICLE_CONTENT";
	
	private Integer id;
	private String title;
	private String describe;
	private String icon;
	private Date gmtCreate;
	private String creator;
	private String creatorType;
	private Channel channel;
	private int state;
	private String abstractOfArticle;//文章摘要
	private String content;
	private String param;
	private String param_2;
	private String param_3;//作者
	
	
	@Override
	public String getMType() {
		return MOBJECT_TYPE;
	}
	

	public static Article EMPTY = new Article();
	static{
		EMPTY.setTitle("<font color=\"RED\" >该新闻已不存在</font>");
	}
	@Override
	public String getName() {
		return title;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getDescribe() {
		return describe;
	}
	public void setDescribe(String describe) {
		this.describe = describe;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public Date getGmtCreate() {
		return gmtCreate;
	}
	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}
	public String getCreator() {
		return creator;
	}
	public void setCreator(String creator) {
		this.creator = creator;
	}
	public String getCreatorType() {
		return creatorType;
	}
	public void setCreatorType(String creatorType) {
		this.creatorType = creatorType;
	}
	public Channel getChannel() {
		return channel;
	}
	public void setChannel(Channel channel) {
		this.channel = channel;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getParam() {
		return param;
	}
	public void setParam(String param) {
		this.param = param;
	}
	public String getParam_2() {
		return param_2;
	}
	public void setParam_2(String param_2) {
		this.param_2 = param_2;
	}
	public String getAbstractOfArticle() {
		return abstractOfArticle;
	}
	public void setAbstractOfArticle(String abstractOfArticle) {
		this.abstractOfArticle = abstractOfArticle;
	}
	public String getParam_3() {
		return param_3;
	}
	public void setParam_3(String param_3) {
		this.param_3 = param_3;
	}
	
}